package com.dragon.modules.yuegou.query.order;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.order.PointRatioEntity;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;

/**
 * 订单积分信息 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2022-08-11 10:22:49
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class PointRatioQuery extends PointRatioEntity implements Query<PointRatioEntity> {

    /** ID查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 订单号查询条件 */
	@JsonUnwrapped(prefix = "orderNo")
	private Condition<String> orderNoCondition;

    /** 商圈ID查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 商户ID查询条件 */
	@JsonUnwrapped(prefix = "merchantId")
	private Condition<String> merchantIdCondition;

    /** 会员ID查询条件 */
	@JsonUnwrapped(prefix = "memberId")
	private Condition<String> memberIdCondition;

    /** 商圈获取积分查询条件 */
	@JsonUnwrapped(prefix = "gainPoint")
	private Condition<Integer> gainPointCondition;

    /** 商圈原始积分查询条件 */
	@JsonUnwrapped(prefix = "beforePoint")
	private Condition<Integer> beforePointCondition;

    /** 商铺获取积分查询条件 */
	@JsonUnwrapped(prefix = "merchantGainPoint")
	private Condition<Integer> merchantGainPointCondition;

    /** 商铺原始积分查询条件 */
	@JsonUnwrapped(prefix = "merchantBeforePoint")
	private Condition<Integer> merchantBeforePointCondition;

    /** 会员获取积分查询条件 */
	@JsonUnwrapped(prefix = "memberGainPoint")
	private Condition<Integer> memberGainPointCondition;

    /** 会员商圈原始积分查询条件 */
	@JsonUnwrapped(prefix = "memberBeforePoint")
	private Condition<Integer> memberBeforePointCondition;

    /** 创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public PointRatioQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public PointRatioQuery(PointRatioEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public PointRatioQuery(PointRatioQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.orderNoCondition != null) {
			this.orderNoCondition = other.orderNoCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.merchantIdCondition != null) {
			this.merchantIdCondition = other.merchantIdCondition.copy();
		}
		if(other.memberIdCondition != null) {
			this.memberIdCondition = other.memberIdCondition.copy();
		}
		if(other.gainPointCondition != null) {
			this.gainPointCondition = other.gainPointCondition.copy();
		}
		if(other.beforePointCondition != null) {
			this.beforePointCondition = other.beforePointCondition.copy();
		}
		if(other.merchantGainPointCondition != null) {
			this.merchantGainPointCondition = other.merchantGainPointCondition.copy();
		}
		if(other.merchantBeforePointCondition != null) {
			this.merchantBeforePointCondition = other.merchantBeforePointCondition.copy();
		}
		if(other.memberGainPointCondition != null) {
			this.memberGainPointCondition = other.memberGainPointCondition.copy();
		}
		if(other.memberBeforePointCondition != null) {
			this.memberBeforePointCondition = other.memberBeforePointCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
	}

	@Override
	public QueryWrapper<PointRatioEntity> toQueryWrapper() {
		QueryWrapper<PointRatioEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (orderNoCondition != null) {
			orderNoCondition.toWrapper(wrapper, COL_ORDER_NO);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (merchantIdCondition != null) {
			merchantIdCondition.toWrapper(wrapper, COL_MERCHANT_ID);
		}
		if (memberIdCondition != null) {
			memberIdCondition.toWrapper(wrapper, COL_MEMBER_ID);
		}
		if (gainPointCondition != null) {
			gainPointCondition.toWrapper(wrapper, COL_GAIN_POINT);
		}
		if (beforePointCondition != null) {
			beforePointCondition.toWrapper(wrapper, COL_BEFORE_POINT);
		}
		if (merchantGainPointCondition != null) {
			merchantGainPointCondition.toWrapper(wrapper, COL_MERCHANT_GAIN_POINT);
		}
		if (merchantBeforePointCondition != null) {
			merchantBeforePointCondition.toWrapper(wrapper, COL_MERCHANT_BEFORE_POINT);
		}
		if (memberGainPointCondition != null) {
			memberGainPointCondition.toWrapper(wrapper, COL_MEMBER_GAIN_POINT);
		}
		if (memberBeforePointCondition != null) {
			memberBeforePointCondition.toWrapper(wrapper, COL_MEMBER_BEFORE_POINT);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		return wrapper;
	}

	/**
	 * 构造并返回ID查询条件
	 * 
	 * @return idCondition ID查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取ID查询条件
	 * 
	 * @return idCondition ID查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置ID查询条件
	 * 
	 * @param idCondition ID查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回订单号查询条件
	 * 
	 * @return orderNoCondition 订单号查询条件
	 */
	public Condition<String> orderNo() {
		this.orderNoCondition = new Condition<>();
		return this.orderNoCondition;
	}
	
	/**
	 * 获取订单号查询条件
	 * 
	 * @return orderNoCondition 订单号查询条件
	 */
	public Condition<String> getOrderNoCondition() {
		return orderNoCondition;
	}

	/**
	 * 设置订单号查询条件
	 * 
	 * @param orderNoCondition 订单号查询条件
	 */
	public void setOrderNoCondition(Condition<String> orderNoCondition) {
		this.orderNoCondition = orderNoCondition;
	}

	/**
	 * 构造并返回商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈ID查询条件
	 * 
	 * @param busdIdCondition 商圈ID查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回商户ID查询条件
	 * 
	 * @return merchantIdCondition 商户ID查询条件
	 */
	public Condition<String> merchantId() {
		this.merchantIdCondition = new Condition<>();
		return this.merchantIdCondition;
	}
	
	/**
	 * 获取商户ID查询条件
	 * 
	 * @return merchantIdCondition 商户ID查询条件
	 */
	public Condition<String> getMerchantIdCondition() {
		return merchantIdCondition;
	}

	/**
	 * 设置商户ID查询条件
	 * 
	 * @param merchantIdCondition 商户ID查询条件
	 */
	public void setMerchantIdCondition(Condition<String> merchantIdCondition) {
		this.merchantIdCondition = merchantIdCondition;
	}

	/**
	 * 构造并返回会员ID查询条件
	 * 
	 * @return memberIdCondition 会员ID查询条件
	 */
	public Condition<String> memberId() {
		this.memberIdCondition = new Condition<>();
		return this.memberIdCondition;
	}
	
	/**
	 * 获取会员ID查询条件
	 * 
	 * @return memberIdCondition 会员ID查询条件
	 */
	public Condition<String> getMemberIdCondition() {
		return memberIdCondition;
	}

	/**
	 * 设置会员ID查询条件
	 * 
	 * @param memberIdCondition 会员ID查询条件
	 */
	public void setMemberIdCondition(Condition<String> memberIdCondition) {
		this.memberIdCondition = memberIdCondition;
	}

	/**
	 * 构造并返回商圈获取积分查询条件
	 * 
	 * @return gainPointCondition 商圈获取积分查询条件
	 */
	public Condition<Integer> gainPoint() {
		this.gainPointCondition = new Condition<>();
		return this.gainPointCondition;
	}
	
	/**
	 * 获取商圈获取积分查询条件
	 * 
	 * @return gainPointCondition 商圈获取积分查询条件
	 */
	public Condition<Integer> getGainPointCondition() {
		return gainPointCondition;
	}

	/**
	 * 设置商圈获取积分查询条件
	 * 
	 * @param gainPointCondition 商圈获取积分查询条件
	 */
	public void setGainPointCondition(Condition<Integer> gainPointCondition) {
		this.gainPointCondition = gainPointCondition;
	}

	/**
	 * 构造并返回商圈原始积分查询条件
	 * 
	 * @return beforePointCondition 商圈原始积分查询条件
	 */
	public Condition<Integer> beforePoint() {
		this.beforePointCondition = new Condition<>();
		return this.beforePointCondition;
	}
	
	/**
	 * 获取商圈原始积分查询条件
	 * 
	 * @return beforePointCondition 商圈原始积分查询条件
	 */
	public Condition<Integer> getBeforePointCondition() {
		return beforePointCondition;
	}

	/**
	 * 设置商圈原始积分查询条件
	 * 
	 * @param beforePointCondition 商圈原始积分查询条件
	 */
	public void setBeforePointCondition(Condition<Integer> beforePointCondition) {
		this.beforePointCondition = beforePointCondition;
	}

	/**
	 * 构造并返回商铺获取积分查询条件
	 * 
	 * @return merchantGainPointCondition 商铺获取积分查询条件
	 */
	public Condition<Integer> merchantGainPoint() {
		this.merchantGainPointCondition = new Condition<>();
		return this.merchantGainPointCondition;
	}
	
	/**
	 * 获取商铺获取积分查询条件
	 * 
	 * @return merchantGainPointCondition 商铺获取积分查询条件
	 */
	public Condition<Integer> getMerchantGainPointCondition() {
		return merchantGainPointCondition;
	}

	/**
	 * 设置商铺获取积分查询条件
	 * 
	 * @param merchantGainPointCondition 商铺获取积分查询条件
	 */
	public void setMerchantGainPointCondition(Condition<Integer> merchantGainPointCondition) {
		this.merchantGainPointCondition = merchantGainPointCondition;
	}

	/**
	 * 构造并返回商铺原始积分查询条件
	 * 
	 * @return merchantBeforePointCondition 商铺原始积分查询条件
	 */
	public Condition<Integer> merchantBeforePoint() {
		this.merchantBeforePointCondition = new Condition<>();
		return this.merchantBeforePointCondition;
	}
	
	/**
	 * 获取商铺原始积分查询条件
	 * 
	 * @return merchantBeforePointCondition 商铺原始积分查询条件
	 */
	public Condition<Integer> getMerchantBeforePointCondition() {
		return merchantBeforePointCondition;
	}

	/**
	 * 设置商铺原始积分查询条件
	 * 
	 * @param merchantBeforePointCondition 商铺原始积分查询条件
	 */
	public void setMerchantBeforePointCondition(Condition<Integer> merchantBeforePointCondition) {
		this.merchantBeforePointCondition = merchantBeforePointCondition;
	}

	/**
	 * 构造并返回会员获取积分查询条件
	 * 
	 * @return memberGainPointCondition 会员获取积分查询条件
	 */
	public Condition<Integer> memberGainPoint() {
		this.memberGainPointCondition = new Condition<>();
		return this.memberGainPointCondition;
	}
	
	/**
	 * 获取会员获取积分查询条件
	 * 
	 * @return memberGainPointCondition 会员获取积分查询条件
	 */
	public Condition<Integer> getMemberGainPointCondition() {
		return memberGainPointCondition;
	}

	/**
	 * 设置会员获取积分查询条件
	 * 
	 * @param memberGainPointCondition 会员获取积分查询条件
	 */
	public void setMemberGainPointCondition(Condition<Integer> memberGainPointCondition) {
		this.memberGainPointCondition = memberGainPointCondition;
	}

	/**
	 * 构造并返回会员商圈原始积分查询条件
	 * 
	 * @return memberBeforePointCondition 会员商圈原始积分查询条件
	 */
	public Condition<Integer> memberBeforePoint() {
		this.memberBeforePointCondition = new Condition<>();
		return this.memberBeforePointCondition;
	}
	
	/**
	 * 获取会员商圈原始积分查询条件
	 * 
	 * @return memberBeforePointCondition 会员商圈原始积分查询条件
	 */
	public Condition<Integer> getMemberBeforePointCondition() {
		return memberBeforePointCondition;
	}

	/**
	 * 设置会员商圈原始积分查询条件
	 * 
	 * @param memberBeforePointCondition 会员商圈原始积分查询条件
	 */
	public void setMemberBeforePointCondition(Condition<Integer> memberBeforePointCondition) {
		this.memberBeforePointCondition = memberBeforePointCondition;
	}

	/**
	 * 构造并返回创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置创建时间查询条件
	 * 
	 * @param createdTimeCondition 创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

}
